package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyDateChannelServerIdHeroInfo implements Serializable
{
	// 日期标识
	private String				date;
	// 服务器标识
	private String				serverId;
	// 渠道标识
	private String				channelId;
	// 英雄标识
	private int					heroId;
	// 英雄星级
	private int					heroStar;
	private static final long	serialVersionUID	= 1L;

	public KeyDateChannelServerIdHeroInfo()
	{
	}

	public KeyDateChannelServerIdHeroInfo(String date, String serverId, String channelId, int heroId, int heroStar)
	{
		this.date = date;
		this.heroId = heroId;
		this.heroStar = heroStar;
		this.serverId = serverId;
		this.channelId = channelId;
	}

	public String getChannelId()
	{
		return serverId;
	}

	public void setChannelId(String channelId)
	{
		this.serverId = channelId;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getServerId()
	{
		return channelId;
	}

	public void setServerId(String locationId)
	{
		this.channelId = locationId;
	}

	public int getHeroId()
	{
		return heroId;
	}

	public void setHeroId(int heroId)
	{
		this.heroId = heroId;
	}

	public int getHeroStar()
	{
		return heroStar;
	}

	public void setHeroStar(int heroStar)
	{
		this.heroStar = heroStar;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((channelId == null) ? 0 : channelId.hashCode());
		result = prime * result + ((serverId == null) ? 0 : serverId.hashCode());
		result = prime * result + heroId;
		result = prime * result + heroStar;
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyDateChannelServerIdHeroInfo o = (KeyDateChannelServerIdHeroInfo) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (serverId == null && o.serverId != null || null != serverId && !serverId.equals(o.serverId))
		{
			return false;
		}
		if (channelId == null && o.channelId != null || null != channelId && !channelId.equals(o.channelId))
		{
			return false;
		}
		return heroId == o.heroId && heroStar == o.heroStar;
	}

	@Override
	public String toString()
	{
		return "KeyDateChannelServerIdHeroInfo [date=" + date + ", serverId=" + serverId + ", channelId=" + channelId + ", heroId=" + heroId
				+ ", heroStar=" + heroStar + "]";
	}
}
